Use the requisition of the widget instead of relying on the style drawing
authorMatthias Clasen <mclasen@redhat.com>
Fri, 9 Jul 2004 18:08:35 +0000 (18:08 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 9 Jul 2004 18:08:35 +0000 (18:08 +0000)
2004-07-09  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the
requisition of the widget instead of relying on the style
drawing function to supply the size of the drawable.  (#146531)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktooltips.c

index d83d7901c881c58987a6b33c266b56600d548dde..2ade6a8a1a61748adc5d2868f70972b8a1260ddf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,12 @@
        * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
        temp_event.
 
+2004-07-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the 
+       requisition of the widget instead of relying on the style
+       drawing function to supply the size of the drawable.  (#146531) 
+
 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
 
        Make GtkEntry work harder to protect passwords:  (#143955,
index d83d7901c881c58987a6b33c266b56600d548dde..2ade6a8a1a61748adc5d2868f70972b8a1260ddf 100644 (file)
@@ -3,6 +3,12 @@
        * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
        temp_event.
 
+2004-07-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the 
+       requisition of the widget instead of relying on the style
+       drawing function to supply the size of the drawable.  (#146531) 
+
 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
 
        Make GtkEntry work harder to protect passwords:  (#143955,
index d83d7901c881c58987a6b33c266b56600d548dde..2ade6a8a1a61748adc5d2868f70972b8a1260ddf 100644 (file)
@@ -3,6 +3,12 @@
        * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
        temp_event.
 
+2004-07-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the 
+       requisition of the widget instead of relying on the style
+       drawing function to supply the size of the drawable.  (#146531) 
+
 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
 
        Make GtkEntry work harder to protect passwords:  (#143955,
index d83d7901c881c58987a6b33c266b56600d548dde..2ade6a8a1a61748adc5d2868f70972b8a1260ddf 100644 (file)
@@ -3,6 +3,12 @@
        * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
        temp_event.
 
+2004-07-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the 
+       requisition of the widget instead of relying on the style
+       drawing function to supply the size of the drawable.  (#146531) 
+
 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
 
        Make GtkEntry work harder to protect passwords:  (#143955,
index 02f80ac98da26aedc75b7b2ad01da24aa253c3ce..482aba5e23a81b7d96e60dbeb6d8eb70ecbd4b1f 100644 (file)
@@ -380,10 +380,13 @@ gtk_tooltips_set_tip (GtkTooltips *tooltips,
 static gint
 gtk_tooltips_paint_window (GtkTooltips *tooltips)
 {
+  GtkRequisition req;
+
+  gtk_widget_size_request (tooltips->tip_window, &req);
   gtk_paint_flat_box (tooltips->tip_window->style, tooltips->tip_window->window,
                      GTK_STATE_NORMAL, GTK_SHADOW_OUT, 
                      NULL, GTK_WIDGET(tooltips->tip_window), "tooltip",
-                     0, 0, -1, -1);
+                     0, 0, req.width, req.height);
 
   return FALSE;
 }